package org.swust.sysmonitorapp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.swust.sysmonitorapp.entity.SysDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 *  Mapper 接口
 *
 * @since 2024-12-25
 */
@Mapper
public interface SysDepartmentMapper extends BaseMapper<SysDepartment> {
    @Update("UPDATE sys_department SET count = count + #{count} WHERE dept_id = #{departmentId}")
    int changeCount(@Param("departmentId") Long departmentId,@Param("count") int count);
}
